<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div data-a="1">123</div>
    <div data-a="2">5208520</div>
    <div data-a="3">5208520</div>
    <div data-a="4">5208520</div>
    <script>
        const zdy = document.querySelector('div')
        console.log(zdy);
        console.log(+zdy.dataset.a);
    </script>
</body>

</html>